package com.uhu.tag.dto.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author liujunjie
 * @description
 * @create 2023-11-22 15:46
 **/
@ApiModel("新增标签请求DTO")
@Data
public class TagSaveReqDTO implements Serializable {


    private static final long serialVersionUID = -6852267535401968842L;
    /**
     * 标签名称
     */
    @NotBlank(message = "标签名称不能为空")
    @ApiModelProperty("标签名称")
    private String tagName;

    /**
     * 标签组id
     */
    @NotNull(message = "标签组id不能为空")
    @ApiModelProperty("标签组id")
    private Long tagGroupId;
}
